package com.sacfa.panels;

import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;

import com.sacfa.jframes.Principal;
import com.sacfa.jframes.RecursosHumanos;

@SuppressWarnings("serial")
public class MenuRRHH extends JPanel {
	public MenuRRHH() {
		setBackground(Color.LIGHT_GRAY);
		setSize(397, 140);
		setLayout(null);
		
		JLabel lblUno = new JLabel("Para iniciar, seleccione una de las opciones que a");
		lblUno.setForeground(Color.BLACK);
		lblUno.setFont(new Font("Arial", Font.PLAIN, 14));
		lblUno.setHorizontalAlignment(SwingConstants.CENTER);
		lblUno.setBounds(10, 11, 360, 14);
		add(lblUno);
		
		JLabel lblDos = new JLabel("continuaci\u00F3n se le presentan");
		lblDos.setForeground(Color.BLACK);
		lblDos.setFont(new Font("Arial", Font.PLAIN, 14));
		lblDos.setHorizontalAlignment(SwingConstants.CENTER);
		lblDos.setBounds(10, 36, 360, 14);
		add(lblDos);
		
		JButton btnNewButton = new JButton("Gestion de Recursos Humanos");
		btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				RecursosHumanos recursosHumanos = RecursosHumanos.getInstance();
				recursosHumanos.setVisible(true);
				Principal.getInstance().setVisible(false);
			}
		});
		btnNewButton.setFont(new Font("Arial", Font.BOLD, 12));
		btnNewButton.setBounds(22, 71, 348, 36);
		add(btnNewButton);
	}
}
